<div class="col-sm-12 mt20">
    <div class="panel">
        <div class="panel-body" ng-keyup="myKeyup($event)">
            <div class="col-sm-2">
                <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="period_start.value" is-open="period_start.opened"
                    ng-click="dateOpen($event, period_start)" placeholder="开始时间" ng-required="true" close-text="关闭" current-text="今天"
                    clear-text="清除" readonly/>
            </div>
            <div class="col-sm-2">
                <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="period_end.value" is-open="period_end.opened"
                    ng-click="dateOpen($event, period_end)" placeholder="结束时间" ng-required="true" close-text="关闭" current-text="今天"
                    clear-text="清除" readonly/>
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
            </div>
            <div class="col-sm-2">
                <button class="btn btn-info search btn-block" ng-click="loadlist()">立即搜索</button>
            </div>
        </div>
    </div>

    <div class="panel panel-info">
        <div class="panel-body">
            <table class="table table-bordered">
                <thead>
                    <th>日期</th>
                    <th>优惠金额</th>
                    <th>操作</th>
                </thead>
                <tbody>
                    <tr ng-repeat="record in recordList" ng-if="recordList && recordList.length > 0">
                        <td class="text-center">{{record.date}}</td>
                        <td class="text-center" ng-if="$index != (recordList.length - 1)">{{record.allprice}}元</td>
                        <td class="text-center" ng-if="$index != (recordList.length - 1)">
                            <a class="btn btn-sm btn-info" ng-click="info(record)">明细</a>
                        </td>
                        <td colspan="2" class="text-center" ng-if="$index == (recordList.length - 1)">{{record.allprice}}</td>
                    </tr>
                    <tr ng-if="!recordList || recordList.length < 1">
                        <td colspan="3" class="text-center">没有相关数据</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

</div>